package com.aaa.service.impl;

import com.aaa.dao.ResourceDao;
import com.aaa.dao.impl.ResourceDaoImpl;
import com.aaa.service.ResourceService;

public class ResourceServiceImpl implements ResourceService {
    private ResourceDao resourceDao = new ResourceDaoImpl();

    @Override
    public int deleteResourceByResourceId(Integer resourceId) {
        return resourceDao.deleteResourceByResourceId(resourceId);
    }

    @Override
    public int addResourceAndRole(Integer roleId, Integer resourceId) {
        return resourceDao.addResourceAndRole(roleId,resourceId);
    }
}
